#ifndef _MY_ARRAY_H
#define _MY_ARRAY_H

template<class T>
class MyArray{
public:
	MyArray();
	MyArray(int size);
	~MyArray();

public:
	bool operator==(const MyArray&) const;
	bool operator!=(const MyArray&) const;
	MyArray& operator=(const MyArray&);

	int size() const;
	void sort();
	T min() const;
	T max() const;
	int find(T item) const;

private:
	T* elements;
	int size = 0;
	int index = 0;
};

#endif //_MY_ARRAY_H